$item modify entity @s hotbar.8 {function:"set_lore",entity:"this",mode:"replace_all",lore:\
[{text:"当前箭矢: ",color:"gray",italic:false,extra:[{entity:"@s",nbt:"Inventory[{Slot:8b}].components.\"minecraft:custom_data\".bag[$(select_arrow)].name",interpret:true},{"text":"*",color:"gray"},{entity:"@s",nbt:"Inventory[{Slot:8b}].components.\"minecraft:custom_data\".bag[$(select_arrow)].count",color:"gray"}]}]\
}